package day9;

public class Bullet extends BaseClass{


    int speed;
    public Bullet(){

    }
    public Bullet(int x,int y){
        bf=Main.bullet;
        width=bf.getWidth();
        height=bf.getHeight();
        this.x=x;
        this.y=y;
        speed=20;
        blood=1;
    }

    @Override
    public void move() {
        y=y-speed;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }
}
